package com.efast.cafe.portal.service.common.impl;

import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Transactional;

import com.efast.cafe.portal.dao.common.PortalTreeNodeRefDao;
import com.efast.cafe.portal.entity.common.tree.PortalTreeNodeRef;
import com.efast.cafe.portal.service.common.IPortalTreeNodeRefService;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * <p>Service接口实现类</p>
 * <p>Table: portal_tree_node_ref - </p>
 *
 * @since 2018-04-26 11:37:20
 */
@Service
@Transactional
public class PortalTreeNodeRefServiceImpl implements IPortalTreeNodeRefService{

	private PortalTreeNodeRefDao portalTreeNodeRefDao;
	
	@Autowired
	public void setPortalTreeNodeRefDao(PortalTreeNodeRefDao portalTreeNodeRefDao) {
		this.portalTreeNodeRefDao = portalTreeNodeRefDao;
	}
	
	public PortalTreeNodeRef selectByPrimaryKey(Integer id){
		return portalTreeNodeRefDao.selectByPrimaryKey(id);
	}
	
	public void deleteByPrimaryKey(Integer id){
		portalTreeNodeRefDao.deleteByPrimaryKey(id);
	}
	
	public Integer insert(PortalTreeNodeRef obj){
		return portalTreeNodeRefDao.insert(obj);
	}
	
	public void updateByPrimaryKeySelective(PortalTreeNodeRef obj){
		portalTreeNodeRefDao.updateByPrimaryKeySelective(obj);
	}
	
	public void updateByPrimaryKey(PortalTreeNodeRef obj){
		portalTreeNodeRefDao.updateByPrimaryKey(obj);
	}
}